<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<!-- <ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Finance/index')}">品项列表</a></li>
			<li><a href="{:url('Goods/add')}">新增品项</a></li>
		</ul> -->
		<!-- <form class="well form-inline margin-top-20" method="post" action="{:url('OrderAdmin/detail')}">				                         
            商品名称:
        <input type="text" class="form-control" name="goodsname" id="goodsname" style="width: 120px;" value="" placeholder="">                                               	     
           时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time" id="start_time" value="{$start_time|default=''}" style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time"   id="end_time" value="{$end_time|default=''}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;         
        <input type="text"  value="{$id}" name='id'  style='display:none;'/>
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('OrderAdmin/detail')}">清空</a>
        <a title="数据导出" onclick="exportdata()" id="export" class="btn btn-success" style="margin-left: 10px;">数据导出</a>
        </form> -->
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="40">ID</th>
					<th align="left">订单号</th>
					<th align="left">商品名称</th>
					<th align="left">规格</th>
					<th align="left">价格</th>
					<th align="left">折扣后价格</th>
					<th align="left">优惠金额</th>
					<th align="left">会员价格</th>
					<th align="left">店铺</th>
					<th align="left">生成时间</th>
					<!-- <th align="left">付款状态</th> -->
					<th align="left">活动类型</th>
					<!-- <th width="160">操作</th> -->
				</tr>
			</thead>
			<tbody>			
			<foreach name="detail_list" item="vo">
			<tr>
				<td>{$vo.id}</td>
				<td>{$vo.orderid}</td>
				<td>{:get_good_data($vo['goodsid'],'g_goodsname')}</td>
				<td>{$vo.format}</td><!-- 规格 -->
				<td>{$vo.price}</td>
				<td>{$vo.money}</td>
				<td>{$vo.rmb}</td>
				<td>{$vo.vipprice}</td>
				<td>{:get_store_data($vo['storeid'],'store_name')}</td><!-- 店铺 -->
				<td>{$vo.ctime|time_format}</td>
				<!-- <td>{$vo.paystatus|get_pay_status}</td> -->
				<td>{:get_rebate_data($vo['rebateid'],'re_name')}</td>
				<!-- <td>												
					<a class="js-ajax-delete" href="{:url('Form/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>						
				</td> -->
			</tr>
			</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>	
	<script>
function exportdata()
{
	var orderNo=$("#orderNo").val();
	var cardid=$("#cardid").val();
	var starttime=$("#start_time").val();
	var endtime=$("#end_time").val();
	//location="{:url('Order/importData',array('orderNo'=>"+orderNo+",'cardid'=>"+cardid+",'starttime'=>"+starttime+",'endtime'=>"+endtime+"))}";			
	//location="./importData/orderNo/"+orderNo+"/cardid/"+cardid+"/starttime/"+starttime+"/endtime/"+endtime;
	location="./importData?orderNo="+orderNo+"&cardid="+cardid+"&starttime="+starttime+"&endtime="+endtime;
}
</script>  
<script src="__STATIC__/js/admin.js"></script> 
</body>
</html>